package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 007.采购商采购需求表
 * </p>
 *
 * @author admin
 * @since 2020-09-14
 */
@TableName("biz_purchasing")
public class BizPurchasing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 采购商Id
     */
    @TableField("PurcId")
    private Long purcId;

    /**
     * 水果名称
     */
    @TableField("FruitName")
    private String fruitName;

    /**
     * 需求数量
     */
    @TableField("Num")
    private String num;

    /**
     * 需求单位
     */
    @TableField("Requirement")
    private String requirement;

    /**
     * 联系人
     */
    @TableField("Contact")
    private String contact;

    /**
     * 联系电话
     */
    @TableField("Phone")
    private String phone;

    /**
     * 有效期 3=3天
7=7天
999=长期
     */
    @TableField("ValidPeriodNum")
    private Integer validPeriodNum;

    /**
     * 期限终止日期
     */
    @TableField("ValidPeriod")
    private LocalDate validPeriod;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getPurcId() {
        return purcId;
    }

    public void setPurcId(Long purcId) {
        this.purcId = purcId;
    }
    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName;
    }
    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }
    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String fuck) {
        this.requirement = fuck;
    }
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Integer getValidPeriodNum() {
        return validPeriodNum;
    }

    public void setValidPeriodNum(Integer validPeriodNum) {
        this.validPeriodNum = validPeriodNum;
    }
    public LocalDate getValidPeriod() {
        return validPeriod;
    }

    public void setValidPeriod(LocalDate validPeriod) {
        this.validPeriod = validPeriod;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BizPurchasing{" +
            "id=" + id +
            ", purcId=" + purcId +
            ", fruitName=" + fruitName +
            ", num=" + num +
            ", requirement=" +  requirement+
            ", contact=" + contact +
            ", phone=" + phone +
            ", validPeriodNum=" + validPeriodNum +
            ", validPeriod=" + validPeriod +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
